﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MMMaze
{
    public partial class ArrowPanel : UserControl
    {

        public MazeControl Maze { get; set; }  

        public ArrowPanel()
        {
            InitializeComponent();
            btnB.Click += new RoutedEventHandler((object sender, RoutedEventArgs e)=>  Maze.MoveB());
            btnLT.Click += new RoutedEventHandler((object sender, RoutedEventArgs e) => Maze.MoveLT());
            btnRT.Click += new RoutedEventHandler((object sender, RoutedEventArgs e) => Maze.MoveRT());
            btnL.Click += new RoutedEventHandler((object sender, RoutedEventArgs e) => Maze.MoveL());
            btnR.Click += new RoutedEventHandler((object sender, RoutedEventArgs e) => Maze.MoveR());
            btnF.Click += new RoutedEventHandler((object sender, RoutedEventArgs e) => Maze.MoveF());

        }




    }
}
